/*
 * @Author: your name
 * @Date: 2020-07-26 22:25:18
 * @LastEditTime: 2020-07-27 21:21:39
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ts\react-router-app\src\pages\details_page.js
 */

 import React, { Component } from 'react';
 import DetailsCom from './details_com'
 class DetailsPage extends Component {
   constructor(props) {
     super(props);
     this.state = {  };
   }
   render() {
     return (
       <div>详情页面{this.props.match.params.id}
          <DetailsCom></DetailsCom>
       </div>
     );
   }

   componentWillReceiveProps(nextProps){
     console.log(nextProps.match.params.id)
   }
 }

 export default DetailsPage;
